Skip to content

Fall back to full page load if new url doesn't have root element#19

Open
scottsb wants to merge 1 commit intoestrattonbailey:masterfrom
scottsb:patch-1
Open

Fall back to full page load if new url doesn't have root element#19
scottsb wants to merge 1 commit intoestrattonbailey:masterfrom
scottsb:patch-1

Conversation

@scottsb
Copy link

@scottsb scottsb commented Jun 15, 2020

Ideally URLs that point to pages on the site without a shared root element would be labeled with the no-ajax class and thus not trigger the PJAX behavior. However, sometimes this is missed, and before this PR, these links would simply fail to load (clicking would do nothing). This change allows the load to proceed as a full-page load. It's wasteful because it still triggers the XHR load in between, but at least the site does not break. (Using no-ajax is still the right solution to avoid this waste--this is intended only as a failsafe.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant